package operato.UserOp;import Books.Book;import Books.BookList;import operato.IOperator;import java.util.Scanner;public class ReturnOperator implements IOperator {    @Override    public void work(BookList booklist) {        Scanner sc = new Scanner(System.in);        System.out.printf("请输入书名-> ");        String bookName = sc.nextLine();        int bookSize = booklist.getBookSize();        for(int i = 0 ;  i< bookSize ; i ++)        {            Book book = booklist.getBook(i);            if(bookName.equals(book.getName()))            {                if(book.getIsBrrowed())                {                    System.out.println("还书成功！");                    book.setIsBrrowed(false);                    return;                }else                {                    System.out.println("该书并未借出");                    return;                }            }        }        System.out.println("未找到书籍");    }}